package chixing.day06;

public class Order {
    private int orderId;
    private int amount;
    public Order()
    {
        orderId = 0;
        amount = 0;
    }
    public Order(int orderId, int amount)
    {
        this.orderId = orderId;
        this.amount = amount;
    }
    public void printOrder()
    {
        System.out.println("订单编号：" + orderId + " 订单金额：" + amount);
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }
}
